<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.7.0" />

	<title>Class Mekayotl_tools_utils_Conversion | nort</title>

	<script type="text/javascript" src="resources/combined.js?1481722677"></script>
	<script type="text/javascript" src="elementlist.js?1094816827"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1567499433" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-App.html">App<span></span></a>
						<ul>
				<li><a href="package-App.Saas.html">Saas</a>
						</li>
				<li><a href="package-App.saas.html">saas</a>
						</li>
				<li><a href="package-App.SaaS.html">SaaS<span></span></a>
						<ul>
				<li><a href="package-App.saas.Logic.html">Logic</a>
						</li>
				<li><a href="package-App.SaaS.SaaS.html">SaaS</a>
						</li>
				<li><a href="package-App.Saas.Tables.html">Tables</a>
						</li>
				<li><a href="package-App.Saas.Vo.html">Vo</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-aqua.html">aqua<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.Monitor.html">Monitor</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-flashservices.html">flashservices<span></span></a>
						<ul>
				<li><a href="package-flashservices.adapters.html">adapters</a>
						</li>
				<li><a href="package-flashservices.debug.html">debug</a>
						</li>
				<li><a href="package-flashservices.exception.html">exception</a>
						</li>
				<li><a href="package-flashservices.filters.html">filters</a>
						</li>
				<li><a href="package-flashservices.io.html">io</a>
						</li>
				<li><a href="package-flashservices.sql.html">sql</a>
						</li>
				<li><a href="package-flashservices.util.html">util</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-Mekayotl.html">Mekayotl<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.core.html">core</a>
						</li>
				<li><a href="package-Mekayotl.database.html">database<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.database.dal.html">dal</a>
						</li>
				<li><a href="package-Mekayotl.database.mysql.html">mysql</a>
						</li>
				<li><a href="package-Mekayotl.database.sqlite.html">sqlite</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-Mekayotl.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html">render<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html.html">html</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.tools.renders.html">renders</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li><a href="package-PHPMailer.html">PHPMailer</a>
						</li>
				<li><a href="package-Services.html">Services<span></span></a>
						<ul>
				<li><a href="package-Services.JSON.html">JSON</a>
						</li>
							</ul></li>
				<li><a href="package-Swift.html">Swift<span></span></a>
						<ul>
				<li><a href="package-Swift.ByteStream.html">ByteStream</a>
						</li>
				<li><a href="package-Swift.CharacterStream.html">CharacterStream</a>
						</li>
				<li><a href="package-Swift.Encoder.html">Encoder</a>
						</li>
				<li><a href="package-Swift.Events.html">Events</a>
						</li>
				<li><a href="package-Swift.KeyCache.html">KeyCache</a>
						</li>
				<li><a href="package-Swift.Mailer.html">Mailer</a>
						</li>
				<li><a href="package-Swift.Mime.html">Mime</a>
						</li>
				<li><a href="package-Swift.Plugins.html">Plugins</a>
						</li>
				<li><a href="package-Swift.Transport.html">Transport</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-Mekayotl_tools_Acl.html">Mekayotl_tools_Acl</a></li>
				<li><a href="class-Mekayotl_tools_CountryData.html">Mekayotl_tools_CountryData</a></li>
				<li><a href="class-Mekayotl_tools_Image.html">Mekayotl_tools_Image</a></li>
				<li><a href="class-Mekayotl_tools_Mailer.html">Mekayotl_tools_Mailer</a></li>
				<li><a href="class-Mekayotl_tools_Request.html">Mekayotl_tools_Request</a></li>
				<li><a href="class-Mekayotl_tools_Security.html">Mekayotl_tools_Security</a></li>
				<li><a href="class-Mekayotl_tools_Upload.html">Mekayotl_tools_Upload</a></li>
				<li><a href="class-Mekayotl_tools_Utils.html">Mekayotl_tools_Utils</a></li>
				<li class="active"><a href="class-Mekayotl_tools_utils_Conversion.html">Mekayotl_tools_utils_Conversion</a></li>
				<li><a href="class-Mekayotl_tools_utils_Numbers.html">Mekayotl_tools_utils_Numbers</a></li>
				<li><a href="class-Mekayotl_tools_Views.html">Mekayotl_tools_Views</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-Mekayotl.tools.html" title="Summary of Mekayotl\tools"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Mekayotl_tools_utils_Conversion</h1>


	<div class="description">
	
<p>Esta clase proporciona metodos varios.</p>

	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-Mekayotl.html">Mekayotl</a>\<a href="package-Mekayotl.tools.html">tools</a><br />

				<b>Copyright:</b>
				Copyright (c) 2008, <a href="http://www.aquainteractive.com">Aqua
Interactive</a><br />
				<b>Author:</b>
				Henry I. Galvez T. &lt;<a
href="mailto:alograg&#64;alograg.me">alograg&#64;<!---->alograg.me</a>&gt;<br />
		<b>Located at</b> <a href="source-class-Mekayotl_tools_utils_Conversion.html#15" title="Go to source code">lib/php/mekayotl/tools/utils/Conversion.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="evalString" id="_evalString">

		<td class="attributes"><code>
			 public static
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_evalString">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#29" title="Go to source code">evalString</a>( <span>string <var>$value</var></span> )</code>

		<div class="description short">
			
<p>Evalua un string para convertirlo en eun dato</p>

		</div>

		<div class="description detailed hidden">
			
<p>Evalua un string para convertirlo en eun dato</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$value</var></dt>
					<dd><code>string</code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toPHP" id="_toPHP">

		<td class="attributes"><code>
			 public static
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toPHP">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#58" title="Go to source code">toPHP</a>( <span>string <var>$data</var></span>, <span>string <var>$type</var> = <span class="php-quote">'string'</span></span> )</code>

		<div class="description short">
			
<p>Interpreta un string para devolverlo como la variable</p>

		</div>

		<div class="description detailed hidden">
			
<p>Interpreta un string para devolverlo como la variable</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd><code>string</code><br> El string a convertir</dd>
					<dt><var>$type</var></dt>
					<dd><code>string</code><br> El tipo origen (json|int|float|complex:array|array|time|string). Default:
string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>El texto convertido<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toString" id="_toString">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toString">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#83" title="Go to source code">toString</a>( <span>mixed <var>$data</var></span>, <span>string <var>$type</var> = <span class="php-quote">'string'</span></span> )</code>

		<div class="description short">
			
<p>Interpreta una variable para regrezarla la codificación indicada</p>

		</div>

		<div class="description detailed hidden">
			
<p>Interpreta una variable para regrezarla la codificación indicada</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd><code>mixed</code><br> La variable a convertir</dd>
					<dt><var>$type</var></dt>
					<dd><code>string</code><br> El tipo destino (json|int|float|complex:array|array|time|string). Default:
string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br>El texto convertido<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toXML" id="_toXML">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toXML">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#125" title="Go to source code">toXML</a>( <span><code><a href="class-variant.html">variant</a></code> <var>$object</var></span>, <span>string <var>$name</var> = <span class="php-quote">'root'</span></span>, <span> <var>$asString</var> = <span class="php-keyword1">FALSE</span></span>, <span> <var>&amp; $remove</var> = <span class="php-keyword1">array</span>()</span> )</code>

		<div class="description short">
			
<p>Transforma un array asociativo en un string de XML</p>

		</div>

		<div class="description detailed hidden">
			
<p>Transforma un array asociativo en un string de XML</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$object</var></dt>
					<dd><code><code><a href="class-variant.html">variant</a></code></code><br> El array a convertir</dd>
					<dt><var>$name</var></dt>
					<dd><code>string</code><br> Nombre del nodo</dd>
					<dt><var>$asString</var></dt>
					<dd></dd>
					<dt><var>$remove</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br>El string con el XML<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="mesEsp" id="_mesEsp">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_mesEsp">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#198" title="Go to source code">mesEsp</a>( <span>integer <var>$int</var></span>, <span> <var>$avrev</var> = <span class="php-keyword1">FALSE</span></span> )</code>

		<div class="description short">
			
<p>Recibe un timestamp o un entero de 1 al 12 y regresa el mes en español y en
minusculas</p>

		</div>

		<div class="description detailed hidden">
			
<p>Recibe un timestamp o un entero de 1 al 12 y regresa el mes en español y en
minusculas</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$int</var></dt>
					<dd><code>integer</code></dd>
					<dt><var>$avrev</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="diaEsp" id="_diaEsp">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_diaEsp">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#245" title="Go to source code">diaEsp</a>( <span>integer <var>$int</var></span> )</code>

		<div class="description short">
			
<p>Recibe un timestamp o un entero del 1 al 7 y regresa el dia en español y en
minusculas</p>

		</div>

		<div class="description detailed hidden">
			
<p>Recibe un timestamp o un entero del 1 al 7 y regresa el dia en español y en
minusculas</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$int</var></dt>
					<dd><code>integer</code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="substitute" id="_substitute">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_substitute">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#270" title="Go to source code">substitute</a>( <span>array <var>$data</var></span>, <span>string <var>$text</var></span> )</code>

		<div class="description short">
			
<p>Busca los campos en un texto y los remplaza por datos de un array</p>

		</div>

		<div class="description detailed hidden">
			
<p>Busca los campos en un texto y los remplaza por datos de un array</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd><code>array</code><br> El elemento que tiene los valores.</dd>
					<dt><var>$text</var></dt>
					<dd><code>string</code><br> El texto a ser remplazado.</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br>El texto con los datos colocados<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="processCSVLine" id="_processCSVLine">

		<td class="attributes"><code>
			 public static
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_processCSVLine">#</a>
		<code><a href="source-class-Mekayotl_tools_utils_Conversion.html#288" title="Go to source code">processCSVLine</a>( <span>string <var>&amp; $line</var></span> )</code>

		<div class="description short">
			
<p>Procesa una linea CSV para cambiarla a un arreglo indexado.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Procesa una linea CSV para cambiarla a un arreglo indexado.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$line</var></dt>
					<dd><code>string</code><br> La linea a ser cambiada.</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Arreglo indexado.<br />
				</div>




		</div>
		</div></td>
	</tr>
	</table>










</div>

	<div id="footer">
		nort API documentation generated by <a href="http://apigen.org">ApiGen 2.7.0</a>
	</div>
</div>
</div>
</body>
</html>
